<%--
    Document   : turnfoodchart
    Created on : Jan 27, 2012, 1:43:30 PM
    Author     : Venus
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.*, java.text.NumberFormat,Beans.ThamSoHT,Models.ThamSoHT_Model, Models.NhomMA_Model, Models.MonAn_Model, Models.TienTe_Model, Models.ThongKe_Model"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>i-Order</title>
        <link rel="icon" href="images/icon.png" />
        <link rel="shortcut icon" href="images/icon.png" />
        <link rel="apple-touch-icon" href="images/icon.png"/>
        <link rel="apple-touch-icon-precomposed" href="images/icon.png"/>
        <script src="js/jquery-1.5.1.min.js" type="text/javascript"></script>
        <script src="js/highcharts.js" type="text/javascript"></script>
        <script src="js/themes/gray.js" type="text/javascript"></script>
        <script src="js/chart.js" type="text/javascript"></script>
        <title>JSP Page</title>
        <%
            int langid = (Integer) session.getAttribute("langid"); // ngôn ngữ hiện tại
            String dsts = " 'year', 'monthlyturnover', 'reportdate', 'authorizedofficer', 'signature', 'departmentmanager' ";
            ThamSoHT[] mdsts = ThamSoHT_Model.DSThamSo(dsts, langid); // mảng chứa các tham số của trang này.
            String authorizedofficer = mdsts[0].getTenTS();            
            String departmentmanager = mdsts[1].getTenTS();
            String monthlyturnover = mdsts[2].getTenTS();
            String reportdate = mdsts[3].getTenTS();
            String signature = mdsts[4].getTenTS();
            String yearr = mdsts[5].getTenTS();

            String tendn = (String) request.getAttribute("tendn");
            String diachi = (String) request.getAttribute("diachi");
            String sodt = (String) request.getAttribute("sodt");
            String ngaygio = (String) request.getAttribute("ngaygio");
            String year = request.getParameter("year");
        %>
        
    </head>
    <body>
        <div style=" width: 60%; background: #f5e3c0; margin-left: 250px; padding: 10px;">
        <div style=" " class="companystatics">
            <div style="text-align: left; text-transform: uppercase; font-size: 20px; margin-bottom: 10px; color: #242323; font-weight: bold;"><%=tendn%></div>
            <div style="text-align: left; margin-bottom: 5px; color: #242323;"><img style=" margin-right: 8px;" alt="" src="images/download2.png"><%=diachi%></div>
            <div style="text-align: left; color: #242323;"><img style=" margin-right: 5px;" alt="" src="images/phone.png"><%=sodt%></div>
        </div>
        <div style=" color: #906102; text-transform: uppercase; clear: both; font-size: 24px; margin-bottom: 30px; margin-top: 15px;  font-weight: bold; text-align: center;"><%=monthlyturnover%> <%=yearr%> <%=year%></div>
        <input type="hidden" id="year" value="<%=year%>">
        <div id="container" class="content highcharts-container" style=" padding: 0; height: 410px; width: 750px;">
        </div>
        
        <div style=" padding-top: 30px; background: #f5e3c0; height: 100px; padding-left: 5px; ">
        <div style=" width: 300px; float: left;">
            <label><%=reportdate%> :</label> <%=ngaygio%>
        </div>
        <div style=" width: 230px; float: left;">
            <label><%=authorizedofficer%></label><br /><br />
            <div style=" padding-left: 30px;"><%=signature%></div>
        </div>
        <div style="width: 150px; float: left;">
            <label><%=departmentmanager%></label><br /><br />
            <div style=" padding-left: 30px;"><%=signature%></div>
        </div>
        </div>
        </div>
    </body>
    <script type="text/javascript">
        $().ready(function() {
            var year = document.getElementById("year").value;
            TurnoverChart(year);
        });
    </script>
</html>
